<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php
$id = $_REQUEST['id'];
$query = "select * from sanpham where MaSanPham=".$id;
$result = DataProvider::ExecuteQuery($query);
$row = mysql_fetch_array($result);
?>
<center>
<table width="200" border="0">
<caption>
    <h2>Product details</h2>
  </caption>
  <tr>
    <th scope="col">Name: <?php echo $row["TenSanPham"]; ?></th>
  </tr>
  <tr>
    <td><img src="images/<?php echo $row["HinhURL"]; ?>" /></td>
  </tr>
  <tr>
    <td>Price: <?php echo $row["GiaSanPham"]; ?></td>
  </tr>
  <tr>
    <td><?php echo $row["MoTa"]; ?></td>
  </tr>
  <tr>
    <td width="38%" height="24" align="center">                    	
        <a href="?page=buynow&id=<?php echo $row["MaSanPham"]; ?>" id="blue1">
         Buy Now  
        </a>
    </td>                                        
  </tr>
</table>
</center>
</body>
</html>
